﻿using System.Runtime.Serialization;
using System.ServiceModel;
using System.Data;

namespace HRMService
{

    [ServiceContract(Namespace = "http://HRMService")]
    public interface ICCriteria
    {
        [OperationContract]
        DataSet CCriteria_GetByCandidate(int CandidateID);

        [OperationContract]
        CCriteriaInfo CCriteria_GetInfo(int _CCriteria_CandidateID, string _CCriteria_Name, int _CCriteria_Ordinal, int _CCriteria_RecruitmentID);

        [OperationContract]
        int CCriteria_Insert(CCriteriaInfo eInfo);

        [OperationContract]
        bool CCriteria_Update(CCriteriaInfo eInfo);

        [OperationContract]
        bool CCriteria_Delete(int CandidateID, int RecruitmentID);
    }
    [DataContract(Namespace = "http://HRMService")]
    public class CCriteriaInfo
    {
        #region VARIABLES

        int _ID;
        int _CandidateID;
        string _Name;
        string _Comments;
        string _Point;
        int _Ordinal;
        int _RecruitmentID;

        #endregion

        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        [DataMember]
        public int CandidateID
        {
            get { return _CandidateID; }
            set { _CandidateID = value; }
        }
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        [DataMember]
        public string Comments
        {
            get { return _Comments; }
            set { _Comments = value; }
        }
        [DataMember]
        public string Point
        {
            get { return _Point; }
            set { _Point = value; }
        }
        [DataMember]
        public int Ordinal
        {
            get { return _Ordinal; }
            set { _Ordinal = value; }
        }

        [DataMember]
        public int RecruitmentID
        {
            get { return _RecruitmentID; }
            set { _RecruitmentID = value; }
        }
    }

}
